name: lldb Tests

permissions:
  contents: read

on:
  workflow_dispatch:
  push:
    ignore-forks: true
    branches:
      - 'release/**'
    paths:
      - 'lldb/**'
      - '.github/workflows/lldb-tests.yml'
      - '.github/workflows/llvm-project-tests.yml'
      - '!clang/**'
      - '!llvm/**'
  pull_request:
    ignore-forks: true
    branches:
      - 'release/**'
    paths:
      - 'lldb/**'
      - '.github/workflows/lldb-tests.yml'
      - '.github/workflows/llvm-project-tests.yml'
      - '!clang/**'
      - '!llvm/**'

concurrency:
  # Skip intermediate builds: always.
  # Cancel intermediate builds: only if it is a pull request build.
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
  build_lldb:
    if: github.repository_owner == 'llvm'
    name: Build lldb
    uses: ./.github/workflows/llvm-project-tests.yml
    with:
      build_target: ''
      projects: clang;lldb
